package cn.kgc.vue.commons;

/**
 * @author 课工场
 * @date 2024/4/9
 * @description  响应状态的统一管理
 */
public enum ResponseStatus {

    SUCCESS(Const.SUCCESS,"操作成功"),
    FAIL(Const.FAIL,"操作失败"),
    ERROR(Const.ERROR,"服务器异常，请刷新重试");

    private Integer code;
    private String message;

    ResponseStatus(Integer code,String message){
            this.code = code;
            this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
